﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace TeamBuy.Common
{
    public interface ITeamBuyOrder
    {
        DataTable GetOrderInfoByID(int orderID);
        DataTable GetOrderInfoByIDAndUser(int orderID, int userID);
        int CreateOrder(int userID, int dealID, int quantity, double totalPrice, bool isHadCard, string cardNumber, string mobileNumber);
        int UpdateOrder(int orderID, int quantity, double totalPrice, bool isHadCard, string cardNumber, string mobileNumber);
        int SetUserID(int orderID, int userID);
        int SetOrderCurrentStatus(int orderID, int oldStatus, int currentStatus);
    }
}
